'use strict';

var app = angular.module('guthub');

myapp.controller('RegesterCtrl',['$scope', '$location', '$http',
    function($scope, $location, $http){
      $scope.addUser = function(user){

        $http.post('/apps/services/auth/register', user)
            .success(function(response, status, headers, config) {
                console.log(response);
            }).error(function(data, status, headers, config) {
                console.log(data + status + config);
            });
      }
    }

]);
